#ifndef PERFORM_H
#define PERFORM_H

#include <QDialog>
#include <QPixmap>
#include<QPoint>
#include <QSound>

class Perform : public QDialog
{
	Q_OBJECT

public:
	Perform(QPixmap pixmap,QWidget *parent);
	~Perform();

private:
	QPixmap map;
	QPoint start;
	QPoint current;
	QSound sound;
public:
	QRect rect;

public:
	virtual void paintEvent(QPaintEvent *event);
	virtual void mouseMoveEvent(QMouseEvent *event);
	virtual void mousePressEvent(QMouseEvent *event);
	virtual void mouseReleaseEvent(QMouseEvent *event);
};

#endif // PERFORM_H
